from django.conf.urls import url
from . import views

urlpatterns = [

    #1,订单结算
    url(r'^places/$',views.OrderSettlementView.as_view()),

    #2,订单生成,保存
    url(r'^$',views.OrderCommitView.as_view()),

<<<<<<< HEAD
    url(r'^(?P<order_id>\d+)/uncommentgoods/$',views.CommentGoodsView.as_view()),

    url(r'^(?P<order_id>\d+)/comments/$',views.EvaluationCommentGoodsView.as_view()),
]
=======
    # 3,获取所有订单列表
    url(r'^list/$', views.OrderListViewSet.as_view()),



]

# from rest_framework.routers import DefaultRouter
# router = DefaultRouter()
# router.register('', views.OrderListViewSet, base_name='order_list')
#
# urlpatterns += router.urls
>>>>>>> 8555cb73645f7a4db53de205c2658d7ef3c47cb1
